﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDS
{
    class SJSHQDBFConst
    {
        public const int RECORD_LENGTH = 352;
        public const int HEADER_LENGTH = 1154;
        public class Fields
        {
            private Fields() { }
            static Fields()
            {
                StkId = new DBFRecordFieldAttribute(0, 6);
                StkName = new DBFRecordFieldAttribute(6, 8);
                ClosePrice = new DBFRecordFieldAttribute(14, 9);
                OpenPrice = new DBFRecordFieldAttribute(23, 9);
                KnockPrice = new DBFRecordFieldAttribute(32, 9);
                TotalMktKnockQty = new DBFRecordFieldAttribute(41,12);
                TotalMktKnockAmt = new DBFRecordFieldAttribute(53, 17);
                TradesCount = new DBFRecordFieldAttribute(70, 9);
                HighPrice = new DBFRecordFieldAttribute(79, 9);
                LowPrice = new DBFRecordFieldAttribute(88, 9);

                IOPV = new DBFRecordFieldAttribute(104, 7);
                OpenPosition = new DBFRecordFieldAttribute(129, 12);
                SellPrice5 = new DBFRecordFieldAttribute(141, 9);
                SellQty5 = new DBFRecordFieldAttribute(150, 12);
                SellPrice4 = new DBFRecordFieldAttribute(162, 9);
                SellQty4 = new DBFRecordFieldAttribute(171, 12);
                SellPrice3 = new DBFRecordFieldAttribute(183, 9);
                SellQty3 = new DBFRecordFieldAttribute(192, 12);
                SellPrice2 = new DBFRecordFieldAttribute(204, 9);
                SellQty2 = new DBFRecordFieldAttribute(213, 12);
                SellPrice1 = new DBFRecordFieldAttribute(225, 9);
                SellQty1 = new DBFRecordFieldAttribute(234, 12);
                BuyPrice1 = new DBFRecordFieldAttribute(246, 9);
                BuyQty1 = new DBFRecordFieldAttribute(255, 12);
                BuyPrice2 = new DBFRecordFieldAttribute(267, 9);
                BuyQty2 = new DBFRecordFieldAttribute(276, 12);
                BuyPrice3 = new DBFRecordFieldAttribute(288, 9);
                BuyQty3 = new DBFRecordFieldAttribute(297, 12);
                BuyPrice4 = new DBFRecordFieldAttribute(309, 9);
                BuyQty4 = new DBFRecordFieldAttribute(318, 12);
                BuyPrice5 = new DBFRecordFieldAttribute(330, 9);
                BuyQty5 = new DBFRecordFieldAttribute(339, 12);
               // Addbepos("HQSYL1", 97, 7);
                //Addbepos("HQJSD1", 111, 9);
                //Addbepos("HQJSD2", 120, 9);
                //Addbepos("HQHYCC", 129, 12);

            }
            public static DBFRecordFieldAttribute StkId { get; private set; }
            public static DBFRecordFieldAttribute StkName { get; private set; }
            public static DBFRecordFieldAttribute ClosePrice { get; private set; }
            public static DBFRecordFieldAttribute OpenPrice { get; private set; }
            public static DBFRecordFieldAttribute OpenPosition{ get; private set; }

            public static DBFRecordFieldAttribute TotalMktKnockAmt { get; private set; }
            public static DBFRecordFieldAttribute TotalMktKnockQty { get; private set; }
            public static DBFRecordFieldAttribute HighPrice { get; private set; }
            public static DBFRecordFieldAttribute LowPrice { get; private set; }
            public static DBFRecordFieldAttribute KnockPrice { get; private set; }
            public static DBFRecordFieldAttribute TradesCount { get; private set; }
            public static DBFRecordFieldAttribute IOPV { get; private set; }


            public static DBFRecordFieldAttribute BuyPrice1 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice1 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty1 { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice2 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty2 { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice3 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty3 { get; private set; }
            public static DBFRecordFieldAttribute SellQty1 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice2 { get; private set; }
            public static DBFRecordFieldAttribute SellQty2 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice3 { get; private set; }
            public static DBFRecordFieldAttribute SellQty3 { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice4 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty4 { get; private set; }
            public static DBFRecordFieldAttribute BuyPrice5 { get; private set; }
            public static DBFRecordFieldAttribute BuyQty5 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice4 { get; private set; }
            public static DBFRecordFieldAttribute SellQty4 { get; private set; }
            public static DBFRecordFieldAttribute SellPrice5 { get; private set; }
            public static DBFRecordFieldAttribute SellQty5 { get; private set; }
        }
    }
}
